<template>
  <div class="solutions-container">
    <h1 class="solutions-title">东软环保产品与解决方案</h1>
    <el-row :gutter="20" v-for="(solution, index) in solutions" :key="index">
      <el-col :span="24">
        <h3 class="solution-title">{{ solution.title }}</h3>
        <ul class="solution-context">
          <li v-for="(item, contextIndex) in solution.context" :key="contextIndex">
            <el-icon><Opportunity /></el-icon>
            <div style="margin-left: 10px; margin-right: 50px" v-html="item"></div>
          </li>
        </ul>
      </el-col>
    </el-row>
  </div>
</template>

<script setup>
import { useMainContentStore } from '@/stores/mian/content.js'
import { storeToRefs } from 'pinia'
import { Opportunity } from '@element-plus/icons-vue'

const mainContentStore = useMainContentStore()
const { solutions } = storeToRefs(mainContentStore)
</script>

<style scoped lang="scss">
.solutions-container {
  margin-top: 20px;
  .solutions-title {
    color: rgb(22, 38, 92);
    font-size: 24px;
    margin-bottom: 50px;
    text-align: center;
  }
  .solution-title {
    color: rgb(30 58 138);
    font-size: 18px;
    margin-left: 250px;
    margin-bottom: 20px;
  }

  .solution-context {
    list-style: none;
    padding: 0;
    margin-left: 300px;
    margin-bottom: 15px;
    font-size: 16px;
    li {
      margin-bottom: 10px;
      cursor: pointer;
      display: flex;
      line-height: 1.5;
    }
  }
}

/* 可以根据需要添加更多样式 */
</style>
